package com.yxw.yx_hotel.dto.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel(value = "UserAccountAddDTO", description = "新增客户子账号dto")
public class UserAccountAddDTO implements Serializable {

    /**当前登录人userId*/
    @ApiModelProperty(value = "当前登录人userId", required = true)
    @NotNull(message = "当前登录人userId不能为空！")
    private Long loginUserId;

    /**子账号名称*/
    @ApiModelProperty(value = "子账号名称", required = true)
    @NotNull(message = "子账号名称不能为空！")
    private String userName;

    /**登录账号*/
    @ApiModelProperty(value = "登录账号", required = true)
    @NotNull(message = "登录账号不能为空！")
    private String userNum;

    /**登录密码*/
    @ApiModelProperty(value = "登录密码", required = true)
    @NotNull(message = "登录密码不能为空！")
    private String password;

    /**部门id*/
    @ApiModelProperty(value = "部门id")
    @NotNull(message = "部门id不能为空！")
    private Long deptId;

    /**岗位id*/
    @ApiModelProperty(value = "岗位id")
    @NotNull(message = "岗位id不能为空！")
    private Long postId;

    /**角色id*/
    @ApiModelProperty(value = "角色id")
    @NotNull(message = "角色id不能为空！")
    private Long roleId;

    /**手机号码*/
    @ApiModelProperty(value = "手机号码", required = true)
    @NotNull(message = "手机号码不能为空！")
    private String mobilePhone;

    /**用户状态*/
    @ApiModelProperty(value = "用户状态(0：禁用 1：启用)", required = true)
    @NotNull(message = "用户状态(0：禁用 1：启用)不能为空！")
    private Integer userStatus;
}
